﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BidFunLib.Entity
{
    /// <summary>
    /// Class for login
    /// </summary>
    public class BidLogin
    {
        /// <summary>
        /// technical unique key used in persitance tier. 
        /// </summary>
        virtual public Int32 IdBidLogin { get; set; }

        /// <summary>
        /// Login name of this account
        /// </summary>
        virtual public String Name { get; set; }

        /// <summary>
        /// password of this account
        /// </summary>
        virtual public String Password{ get; set; }

        /// <summary>
        /// Nb token not yet bet
        /// </summary>
        virtual public Int32 NbPointsOwned { get; set; }

        /// <summary>
        /// Nb token buy under this account
        /// </summary>
        virtual public Int32 NbPointsBought { get; set; }

        /// <summary>
        /// Nb token already spend by betting
        /// </summary>
        virtual public Int32 NbPointsPaid { get; set; }

        /// <summary>
        /// Default constructor mandatory for nhibernate
        /// </summary>
        public BidLogin()
        {
            Name = "";
            Password = "";
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="password"></param>
        public BidLogin(String name, String password)
        {
            Name = name;
            Password = password;
        }
     }
}
